#include "def.h"

/* initialization functions */
int init_curses();
int init_mania();

/* deinitialization functions */
int destroy_mania();

/* game loop functions */
void get_input(int*);
void update_mania();
void render_mania();

/* render functions */
void create_playfield();
void create_receptors();
void create_stage();
void create_frame_display();
void create_log();
void render_receptors();
void render_stage();
void render_frame_display();
void render_invidiual_receptor(int, int);
void render_log();

/* helper functions */
void fill_window(WINDOW*, const char);

/* vars */
int frame;
int arrow_l_pressed;
int arrow_d_pressed;
int arrow_u_pressed;
int arrow_r_pressed;
int log_changed;

/* pos and sizes */
int main_w, main_h;
int game_w, game_h;
int game_x, game_y;
int receptor_w;

/* windows */
WINDOW* game_win;
WINDOW* l_border_win;
WINDOW* r_border_win;
WINDOW* frame_display_win;
WINDOW* log_win;
/* 4k mania dayo */
WINDOW* receptors_win[4];
